
import requests from '@src/common/request'


//添加商品到购物车
export function addGoodsToCart(data) {
  return requests.post({
    url: '/mall/mobile/cart/add_item',
    data: data
  })
}


//添加商品到购物车
export function getCartGoods(data) {
  return requests.post({
    url: '/mall/mobile/cart/query_list',
    data: data
  })
}


//添加商品到购物车
export function updateCartGoods(data) {
  return requests.post({
    url: '/mall/mobile/cart/update_item_num',
    data: data
  })
}

//批量删除购物车商品
export function batchDeleteItem(delList) {
  return requests.post( {
    url: '/mall/mobile/cart/batch_del_item',
    data: delList
  })
}

